Display output on tm_data_table, tm_variable_browser, tm_missing_data#829
Display output on tm_data_table, tm_variable_browser, tm_missing_data#829llrs-roche merged 9 commits intomainfrom
Conversation
|
@llrs-roche about transformators and datanames. Have you tried to unify names?
|
|
@llrs-roche about this teal.modules.general::tm_data_table(
datanames = NULL,
variables_selected = list(IRIS = colnames(data$IRIS)[1:3], MTCARS = NULL)),
Assertion on 'variables_selected' failed: May only contain the following types: {character}, but element 2 has type 'NULL'.What you get if teal.modules.general::tm_data_table(
datanames = NULL,
variables_selected = list(IRIS = colnames(data$IRIS)[1:3], MTCARS = character(0)),
|
|
Or MTCARS = names(mtcars) |
|
If I use teal.modules.general::tm_data_table(
datanames = NULL,
variables_selected = list(IRIS = colnames(data$IRIS)[1:3], MTCARS = character(0)),I get: But passing |
Unit Tests Summary 1 files 22 suites 12m 59s ⏱️ Results for commit e9e1e1c. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Additional test case details
Results for commit 3e1032a ♻️ This comment has been updated with latest results. |
m7pr
left a comment
There was a problem hiding this comment.
well done @llrs-roche
I tested the modules with your examples and everything looks fine and as expected. Left one comment about the extension of NEWS




Pull Request
Fixes insightsengineering/teal#1452
This PR works on the edge cases of
datanames = "all"andNULLfor each three modules, in addition I also revised the decision ontm_front_pageto show all modules by default, and reverted back to not showing the panels by default, as per previous behavior and @vedhav compelling comment.Code used to check this (besides the examples)
tm_data_table()tm_variable_browser()tm_missing_data()1: No right-panel but the table uses all datasets that are data.frames. I was thinking if
variables_selectednames should be used whendatanamesis NULL ? So that something like this should only show IRIS dataset and no left panel.But this gets complicated if one wants to keep the standard 6 columns of the datasests as assertion fails:
2: No right-panel but all the datasets that are data.frames are shown.
I also tested whether transformators worked with
tm_missing_data(the only one of these three modules with a transformator argument) because thedatanamesdocumentation implies it will be merged with it: currently it doesn't and I'm not sure how to fix it.If I create a transformator and use datanames not equal to all by default the new dataname won't be used.
I need to explore better the interaction between teal::module and the transformator.
reprex with transformators